package cn.momoky.ccool.utils;

import io.swagger.models.auth.In;

public enum UuaEnum {
    ;

    private Integer code;

    private String desc;

    UuaEnum(Integer code,String desc){
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public static String getMessageByCode(Integer code){
        UuaEnum[] uuaEnums = values();
        for (UuaEnum uuaEnum : uuaEnums){
            if (uuaEnum.getCode().equals(code)){
                return uuaEnum.getDesc();
            }
        }
        return null;
    }
}
